package com.hxht.storage.server.pojo;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
//@Table(schema="storage")
public class NvrDiskInfo extends BaseEntity{
	
	/** 磁盘编号 */
	private Integer diskIndex;
	
	/** 硬盘容量，单位MB */
	private Integer capacity; 
	
	/** 硬盘剩余空间，单位MB */
	private Integer freeSpace; 
	
	/** 硬盘图片容量，单位MB */
	private Integer pictureCapacity; 
	
	/**  硬盘剩余图片空间，单位MB */
	private Integer freePictureCapacity;
	
	@ManyToOne
	@JoinColumn(name = "nvr_id", nullable = true)
	private NvrDeviceInfo nvr;

	public Integer getDiskIndex() {
		return diskIndex;
	}

	public void setDiskIndex(Integer diskIndex) {
		this.diskIndex = diskIndex;
	}

	public NvrDeviceInfo getNvr() {
		return nvr;
	}

	public void setNvr(NvrDeviceInfo nvr) {
		this.nvr = nvr;
	}

	public Integer getCapacity() {
		return capacity;
	}

	public void setCapacity(Integer capacity) {
		this.capacity = capacity;
	}

	public Integer getFreeSpace() {
		return freeSpace;
	}

	public void setFreeSpace(Integer freeSpace) {
		this.freeSpace = freeSpace;
	}

	public Integer getPictureCapacity() {
		return pictureCapacity;
	}

	public void setPictureCapacity(Integer pictureCapacity) {
		this.pictureCapacity = pictureCapacity;
	}

	public Integer getFreePictureCapacity() {
		return freePictureCapacity;
	}

	public void setFreePictureCapacity(Integer freePictureCapacity) {
		this.freePictureCapacity = freePictureCapacity;
	}

}
